#—*—coding:utf-8 -*-
#@Time        :2022/7/18 14:16
#@Author      :dhx
#@File        :collect_return_page.py
# @Software: PyCharm
from time import sleep

from selenium.webdriver.common.by import By
from pages.finance_page import FinancePage

class TestRuturn(FinancePage):

    check_locator = (By.XPATH, '/html/body/div[5]/div[2]/div[2]/table/tbody/tr[1]/td[9]/a')  # 查看
    return_locator = (By.XPATH, '/html/body/div[5]/div[1]/div/a[3]')  # 返回
    def check_click(self):
        """查看"""
        self.driver.find_element(*self.check_locator).click()
        sleep(1)
    def return_click(self):
        """返回"""
        self.driver.find_element(*self.return_locator).click()
        sleep(1)